import request from '@/utils/request'

// 查询运货作业单列表
export function listGTakecargoBills(query) {
  return request({
    url: '/billsdecl/gTakecargoBills/list',
    method: 'get',
    params: query
  })
}

// 查询运货作业单详细
export function getGTakecargoBills(platSeqNo) {
  return request({
    url: '/billsdecl/gTakecargoBills/getInfo/' + platSeqNo,
    method: 'get'
  })
}

//编辑详情
export function getEditGTakecargoBills(platSeqNo) {
  return request({
    url: '/billsdecl/gTakecargoBills/getEditInfo/' + platSeqNo,
    method: 'get'
  })
}


// 新增运货作业单
export function addGTakecargoBills(data) {
  return request({
    url: '/billsdecl/gTakecargoBills/add',
    method: 'post',
    data: data
  })
}

// 修改运货作业单
export function updateGTakecargoBills(data) {
  return request({
    url: '/billsdecl/gTakecargoBills/edit',
    method: 'post',
    data: data
  })
}

// 删除运货作业单
export function delGTakecargoBills(platSeqNo) {
  return request({
    url: '/billsdecl/gTakecargoBills/remove/' + platSeqNo,
    method: 'get'
  })
}

// 导出运货作业单
export function exportGTakecargoBills(query) {
  return request({
    url: '/billsdecl/gTakecargoBills/export',
    method: 'get',
    params: query
  })
}


// 申报
export function declGTakecargoBills(platSeqNos) {
  return request({
    url: '/billsdecl/gTakecargoBills/decl/' + platSeqNos,
    method: 'get'
  })
}

// 重发
export function declRepeatGTakecargoBills(platSeqNos) {
  return request({
    url: '/billsdecl/gTakecargoBills/declRepeat/' + platSeqNos,
    method: 'get'
  })
}

//退单
export function chargebackGTakecargoBills(platSeqNos) {
  return request({
    url: '/billsdecl/gTakecargoBills/chargeback/' + platSeqNos,
    method: 'get'
  })
}

